Skip to content

Conversation

catamorphism
Copy link
Contributor

No description provided.

@catamorphism catamorphism force-pushed the wasip2-porting-random branch from 17e6672 to 6903c83 Compare August 11, 2025 19:05
@pchickey pchickey self-requested a review August 11, 2025 19:24
@catamorphism
Copy link
Contributor Author

I'm debugging an issue where the new test I added fails with a release build (-O2 -NDEBUG) but passes with a debug build (-O0 -g).

@catamorphism catamorphism force-pushed the wasip2-porting-random branch from 6903c83 to 97797de Compare August 11, 2025 19:35
@catamorphism
Copy link
Contributor Author

Bug should be fixed now.

@catamorphism catamorphism marked this pull request as ready for review August 11, 2025 19:37
wasip2_list_u8_t wasi_list;

// Get random bytes
random_get_random_bytes(len, &wasi_list);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little hesitant to handle this error by returning, vs exiting with EX_OSERR or something, since the docs of get-random-bytes guarantee that the wasi_list len will be equal to len. WDYT about exiting instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense. Changed in cdcd442

@pchickey pchickey merged commit 777cf2c into WebAssembly:main Aug 13, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants